package com.woniuxy.happylife.dao;

import com.woniuxy.happylife.entity.MallGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface GoodsDao {
    List<MallGoods> findAll();

    List<MallGoods> findByCid(@Param("cid") int cid);

    List<MallGoods> findNew();

    Integer add(MallGoods goods);

    Integer updateStatusById(int gid);

    MallGoods findById( int gid);

    List<MallGoods> findByName(String name);
}
